package com.xiaomo.gitee.datamanager.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;

import java.io.Serial;
import java.io.Serializable;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @TableName user_role
 */
@TableName(value ="user_role")
@Data
@NoArgsConstructor
public class UserRole implements Serializable {

    @TableField("user_id")
    private Long userId;

    @TableField("role_id")
    private Long roleId;

    public UserRole(Long userId, Long roleId) {
        this.userId = userId;
        this.roleId = roleId;
    }

    @Serial
    private static final long serialVersionUID = 1L;
}